package com.dolphin.servicemap.controller;

import com.dolphin.common.dto.ResponseResult;
import com.dolphin.common.response.TrackResponse;
import com.dolphin.servicemap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/track")
public class TrackController {
    @Autowired
    TrackService trackService;
    @PostMapping("/add")
    public ResponseResult add(@RequestParam String tid){
        ResponseResult<TrackResponse> responseResult = trackService.add(tid);
        return responseResult;
    }
}
